package deepbrain.simnetwork.engine;

import java.util.Collection;

import deepbrain.simnetwork.task.Task;

/**
 * 
 * 
 * @author Li Yang
 * @create 2009-2-24
 */
public interface SimEngine {

	/**
	 * Run a task
	 */
	public void runTask(Task task);

	/**
	 * Run a collection of task
	 */
	public void runTasks(Collection<Task> tasks);

	/**
	 * Stop the engine immediately
	 */
	public void stop();
	
	/**
	 * Avoid receving new task
	 */
	public void shutdown();

}
